package org.stars.dao.params;

import org.stars.security.UserIdentity;
import org.stars.security.UserIdentityImpl;

public class ParamUser extends Param {

	protected UserIdentity user;
	
	public ParamUser() {
		this(new UserIdentityImpl());
	}
	
	public ParamUser(UserIdentity user) {
		this.type=TypeParam.USER;
		this.user=user;
	}

	public static ParamUser set()
	{
		return new ParamUser();
	}
	
	public static ParamUser set(UserIdentity user)
	{
		return new ParamUser(user);
	}

	public UserIdentity getUser() {
		return user;
	}

	public void setUser(UserIdentity user) {
		this.user = user;
	}
	
}
